package com.shop.domain;

import lombok.*;

/**
 * ContractProduct
 * 货物实体类
 * Created by heqianqian on 2017/7/12.
 */
@Data
@NoArgsConstructor
public class ContractProduct {

    private Long contractProductId;
    //private Contract contract;//将复杂的关联变成单表操作
    private String contractId;//关联关系的表，都成为普通字段
    private String factoryId;
    private String factoryName;
    private String productNo;
    private String productImage;
    private String productDesc;//货物描述
    private Integer cnumber;//数量
    private Integer outNumber;//出货数量
    private String loadingRate;//装率
    private String boxNum;//箱数
    private String packingUnit;//包装单位
    private Double price;//单价
    private Double amount;//总价
    private Integer finished;//是否出货完毕
    private String exts;//附件
    private Integer orderNo;//排序号
    private Integer cType;//附件类型

    public ContractProduct(Long contractProductId, String contractId, String factoryId, String factoryName, String productNo, String productImage, String productDesc, Integer cnumber, Integer outNumber, String loadingRate, String boxNum, String packingUnit, Double price, Double amount, Integer finished, String exts, Integer orderNo, Integer cType) {
        this.contractProductId = contractProductId;
        this.contractId = contractId;
        this.factoryId = factoryId;
        this.factoryName = factoryName;
        this.productNo = productNo;
        this.productImage = productImage;
        this.productDesc = productDesc;
        this.cnumber = cnumber;
        this.outNumber = outNumber;
        this.loadingRate = loadingRate;
        this.boxNum = boxNum;
        this.packingUnit = packingUnit;
        this.price = price;
        this.amount = amount;
        this.finished = finished;
        this.exts = exts;
        this.orderNo = orderNo;
        this.cType = cType;
    }

    public Integer getcType() {
        return cType;
    }

    public void setcType(Integer cType) {
        this.cType = cType;
    }
}
